package com.ushine.design.design.b_structural_type.d_decorator.b_example;

/**
 * 构件装饰类
 *
 * @author yls
 */
public class ComponentDecorator extends Component {
    //维持一个抽象构件类型的对象
    private Component component;

    public ComponentDecorator(Component component) {
        this.component = component;
    }

    @Override
    public void display() {
        component.display();
    }

}
